package com.dd.ent.car.common.player;

import java.util.HashMap;

/**
 * Created by wx on 2016/3/3.
 */
public class Cargo {
    private HashMap<Integer,Object> mHashMap = null;

    public static Cargo obtain() {
        return new Cargo();
    }

    private Cargo() {
        mHashMap = new HashMap<Integer,Object>();
    }

    public void put(Integer id, Object o) {
        mHashMap.put(id, o);
    }

    public Object get(Integer id) {
        return mHashMap.get(id);
    }

    public void recycle(){
        mHashMap.clear();
    }
}
